Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform JSX to Lazy Requires instead of Wrappers #30433

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

sebmarkbage
Copy link
Collaborator

This ensures that we can keep overriding what runtime to use by resetting modules while still using the automatic JSX plugin. This is like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack frame that appears due to the wrappers.

This ensures that we can keep overriding what runtime to use by resetting
modules while still using the automatic JSX plugin.
@sebmarkbage sebmarkbage requested a review from acdlite July 23, 2024 19:43
Copy link

vercel bot commented Jul 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 7:47pm

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 23, 2024
@react-sizebot
Copy link

Comparing: b34b750...17923b3

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 501.56 kB 501.56 kB = 90.00 kB 90.00 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 506.38 kB 506.38 kB = 90.70 kB 90.70 kB
facebook-www/ReactDOM-prod.classic.js = 599.89 kB 599.89 kB = 105.91 kB 105.91 kB
facebook-www/ReactDOM-prod.modern.js = 575.95 kB 575.95 kB = 102.19 kB 102.19 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 04b4265

@sebmarkbage sebmarkbage merged commit fc74a3a into facebook:main Jul 23, 2024
187 checks passed
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
felixshiftellecon added a commit to felixshiftellecon/react that referenced this pull request Jul 24, 2024
This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants